<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>开始跑步</title>
    <script type="text/javascript">
        window._AMapSecurityConfig = {
            securityJsCode: "6b9e18cb6ff903bee2fe253274f2c62b",
        }
    </script>
    <script src="https://webapi.amap.com/loader.js"></script>
    <script type="text/javascript">
        AMapLoader.load({
            key: "95f80d5f857c45274c7f7cfbf36e2b70",       // 申请好的Web端开发者Key，首次调用 load 时必填
            version: "2.0",                 // 指定要加载的 JSAPI 的版本，缺省时默认为 1.4.15
        }).then((AMap) => {
            const map = new AMap.Map('container', {
                zoom: 11,//级别
                center: [104.066301, 30.572961],//中心点坐标
            });
        }).catch((e) => {
            console.error(e);  //加载错误提示
        });   
    </script>
</head>

<body class="run">
    <main class="main">
        <!-- 头部导航navbar -->
        <nav class="navbar"></nav>
        <div class="count">
            目前累计跑步距离
            <p><strong id="total">538.00</strong>公里</p>
        </div>
        <!-- 地图展示 -->
        <div class="mapbox">
            <div id="container"></div>
            <div id="goBtn">GO</div>
        </div>

    </main>
    <!-- 底部导航tabbar -->
    <nav class="tabbar"></nav>
    <!-- 蒙层 -->
    <div id="mask"></div>
    <div id="box">3</div>
</body>

</html>